package com.zed.code.model;

import java.io.Serializable;

/**
 * T_Station_Correlation
 * @author 
 */
public class TStationCorrelation implements Serializable {
    private Integer id;

    private Integer stationinfoid;

    private String operatorid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStationinfoid() {
        return stationinfoid;
    }

    public void setStationinfoid(Integer stationinfoid) {
        this.stationinfoid = stationinfoid;
    }

    public String getOperatorid() {
        return operatorid;
    }

    public void setOperatorid(String operatorid) {
        this.operatorid = operatorid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TStationCorrelation other = (TStationCorrelation) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStationinfoid() == null ? other.getStationinfoid() == null : this.getStationinfoid().equals(other.getStationinfoid()))
            && (this.getOperatorid() == null ? other.getOperatorid() == null : this.getOperatorid().equals(other.getOperatorid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStationinfoid() == null) ? 0 : getStationinfoid().hashCode());
        result = prime * result + ((getOperatorid() == null) ? 0 : getOperatorid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", stationinfoid=").append(stationinfoid);
        sb.append(", operatorid=").append(operatorid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}